package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.HgMtlRelation;
import com.alks.function.data.vo.controller.stockdept.HgMtlRelationVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HgMtlRelationMapper extends BaseMapper<HgMtlRelation> {
    /**
     * 根据海关ID逻辑删除
     * @param hgId 海关ID
     */
    void logicDeleteByHgId(@Param("hgId") Long hgId);

    /**
     * 根据物料查询海关信息
     * @param relation 物料信息
     * @return 海关信息
     */
    HgMtlRelationVo hgDetailQueryByMtl(@Param("relation") HgMtlRelation relation);

    /**
     * 批量查询海关信息
     * @param relationList 批量物料信息
     * @return 海关信息
     */
    List<HgMtlRelationVo> hgDetailQueryBatchByMtl(@Param("relationList") List<HgMtlRelation> relationList);
}
